<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<c:url var="addNewComputerType" value="/admin/addComputerType" />
<c:url var="buttonBackComputerType" value="/admin/computerType/pages/1" />

<form:form class="form-signin" name="formNewComputerType"
	action="${addNewComputerType}" method="POST"
	modelAttribute="bindableComputerType"
	commandName="bindableComputerType">

	<form:label path="name">Name</form:label>
	<form:input path="name" type="text" />
	<form:errors path="name" />

	<form:label path="maxFirewalls">Max firewalls</form:label>
	<form:input path="maxFirewalls" type="text" />
	<form:errors path="maxFirewalls" />

	<form:label path="maxNetworkCards">Max network cards</form:label>
	<form:input path="maxNetworkCards" type="text" />
	<form:errors path="maxNetworkCards" />

	<form:label path="maxHardDisks">Max Hard disks</form:label>
	<form:input path="maxHardDisks" type="text" />
	<form:errors path="maxHardDisks" />

	<form:label path="maxPowerSupplies">Max power supplies</form:label>
	<form:input path="maxPowerSupplies" type="text" />
	<form:errors path="maxPowerSupplies" />

	<form:label path="maxRams">Max RAM memories</form:label>
	<form:input path="maxRams" type="text" />
	<form:errors path="maxRams" />

	<form:label path="maxProcessors">Max processors</form:label>
	<form:input path="maxProcessors" type="text" />
	<form:errors path="maxProcessors" />
	
	<form:label path="price">Price</form:label>
    <form:input path="price" type="text" />
    <form:errors path="price" />

	<button type="submit" class="btn btn-primary">Add new computer type</button>

	<a href="${buttonBackComputerType}" class="btn btn-primary"><i
		class="icon-plus icon-white"></i> Back</a>
</form:form>

<c:if test="${not empty sucess}">
	<c:if test="${sucess == true}">
		<p>sucess</p>
	</c:if>
	<c:if test="${sucess == false}">
		<p>error</p>
	</c:if>
</c:if>